CRPEngine::GetVersion

Use CRPEngine::GetVersion to retrieve the version number of the Crystal Report Engine DLL (CRPE32.DLL) or the version number of the Crystal Report Engine itself. The high-order byte is the major version number and the low-order byte is the minor version number.

This method can be used whenever you build functionality into a report that may not be available in earlier versions of the Crystal Report Engine and you need to verify the version number first. This function can be a safeguard for users who have more than one version of the Crystal Report Engine with the older version appearing earlier in the path than the newer version.

Syntax

short GetVersion ( short versionRequested );

Parameters

versionRequested

Specifies whether the version number of the Crystal Report Engine or the Crystal Report Engine DLL is being requested. Use one of the following constants.


Constant Description


PEP_GV_DLL

Returns the version of the DLL.


PEP_GV_ENGINE

Returns the version of the Crystal Report Engine.

Returns

Returns the version number of the currently used Crystal Report Engine or Crystal Report Engine DLL.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com